// pages/order/order.js
Page({
	data: {
		company: ['sf', 'sto', 'yt', 'yd', 'tt'],
		com: ['顺丰', '申通', '圆通', '韵达', '天天'],
		index: 0
	},
	companyInput: function (e) {
		this.setData({
			index : e.detail.value
		})
	},
	search: function () {
		wx.request({
			url: 'http://v.juhe.cn/exp/index?key=' + key + '&com=' + this.data.company[this.data.index] + '&no=' + this.data.no,
			method: 'GET',
			header: {
				'content-type': 'application/json' // 默认值
			},
			success: res => {
				console.log(res.data);
				this.setData({
					expressInfo: res.data
				})
				wx.hideLoading()
			}
		})
	},
	
})